package gameElements;

import java.io.Serializable;

public class Level implements Serializable
{
	/**
	 * 
	 */
	private static final long serialVersionUID = -833303624956410887L;
	
	private int level = 1;
	private int blood = 100;
	private long experience = 100;
	private double attackBuff = 1;
	private int defend = 5;
	
	public int getBlood() {
		return blood;
	}
	public void setBlood(int blood) {
		this.blood = blood;
	}
	public long getExperience() {
		return experience;
	}
	public void setExperience(long experience) {
		this.experience = experience;
	}

	public double getAttackBuff() {
		return attackBuff;
	}

	public void setAttackBuff(double attackBuff) {
		this.attackBuff = attackBuff;
	}

	public int getDefend() {
		return defend;
	}

	public void setDefend(int defend) {
		this.defend = defend;
	}

	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
		iniInfo();
	}

	public Level(int level)
	{
		this.level = level;
		iniInfo();
	}

	private void iniInfo()
	{
		blood = (int)(100*Math.pow(1.2, level));
		experience = 100+level*50;
		
	}
	
	
}
